// vitepress自定义主题

import DefaultTheme from "vitepress/theme";
import XhUI from "@xh-UI/components";
import "@xh-UI/theme-chalk/index.less"; // 引入样式文件
import Preview from "./preview/index.vue";
import "highlight.js/styles/base16/summerfruit-light.css"; // 主题
import hljsVuePlugin from "@highlightjs/vue-plugin";

export default {
    ...DefaultTheme,
    enhanceApp: async ({ app, router, siteData }) => {
        app.use(XhUI);
        app.component("preview", Preview);
        app.use(hljsVuePlugin);
    },
};
